package cn.picclife.mwx.manager.sys.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;

import cn.picclife.mwx.common.core.dao.MyBatisRepositoryAnnotation;
import cn.picclife.mwx.manager.sys.model.po.TTask;
import cn.picclife.mwx.manager.sys.model.po.TTaskNode;
import cn.picclife.mwx.manager.sys.model.po.TTaskNodeExample;
@MyBatisRepositoryAnnotation
public interface TTaskNodeMapper {
    int countByExample(TTaskNodeExample example);

    int deleteByExample(TTaskNodeExample example);

    int deleteByPrimaryKey(Integer nodeId);

    int insert(TTaskNode record);

    int insertSelective(TTaskNode record);

    List<TTaskNode> selectByExample(TTaskNodeExample example);

    TTaskNode selectByPrimaryKey(Integer nodeId);

    int updateByExampleSelective(@Param("record") TTaskNode record, @Param("example") TTaskNodeExample example);

    int updateByExample(@Param("record") TTaskNode record, @Param("example") TTaskNodeExample example);

    int updateByPrimaryKeySelective(TTaskNode record);

    int updateByPrimaryKey(TTaskNode record);

	String QueryFileUrl(String fileId);

	int queryTaskNodePassCount(Integer taskId); //查询节点通过数量

	int updateNodeApproveState(TTaskNode taskNode);

	TTaskNode queryByNodeId(TTaskNode taskNode);//查询节点状态
}